#!/usr/bin/python3
#Filename try.py
import time

try:
    f = open("try.py")
    while True:
        line = f.readline()
        if len(line) == 0:
            break
        print(line,end='')
        time.sleep(1)
except KeyboardInterrupt:
    print("Canceled")
finally:
    f.close()
    print("File closed! Clean your mess")
